<template>
	<view>
		<view class="user-body">
		<home-info :user="user" :islogin="islogin"></home-info>
		<!-- 第二行 -->
		<home-lable></home-lable>
		<!-- 轮播图 -->
			<view class="wrap">
				<u-swiper height="200" border-radius="10" :list="imglist"></u-swiper>
			</view>
			<!-- 菜单 -->
			<block v-for="(item ,index) in homelist">
			<home-list :item="item" :index="index"></home-list>
			</block>
		</view>
	</view>
</template>

<script>
	import homeList from '../../components/home/home-list.vue'
	import homeLable from '../../components/home/home-lable.vue'
	import homeInfo from '../../components/home/home-info.vue'
	export default {
		components:{
			homeList,
			homeLable,
			homeInfo
		},
		data() {
			return {
				islogin:true,
				user:{
					userimg:'../../static/demo/demo66.jpg',
					username:'蔡徐坤',
					count:22,
					todaycount:1
				},
				homelist:[
					{
						icon:'eye',
						color:'#5ABCFF',
						title:'浏览历史',
						navtype:'',
						url:''
					},
					{
						icon:'level',
						color:'#FF7B3F',
						title:'糗事认证',
						navtype:'',
						url:''
					},
					{
						icon:'order',
						color:'#5BBCFF',
						title:'糗事审核',
						navtype:'',
						url:''
					},
					{
						icon:'setting',
						color:'#EB3941',
						title:'设置中心',
						navtype:'navigateTo',
						url:'../../pages/set/set'
					}
				],
				imglist:[
					{
					image: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
					title: '昨夜星辰昨夜风，画楼西畔桂堂东'
					},
					{
					image: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
					title: '昨夜星辰昨夜风，画楼西畔桂堂东'
					},
					{
					image: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
					title: '昨夜星辰昨夜风，画楼西畔桂堂东'
					},
					{
					image: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
					title: '昨夜星辰昨夜风，画楼西畔桂堂东'
					}
				]
			}
		},
		methods: {
			
		},
		created() {
			console.log("主页启动了")
		}
	}
</script>

<style>
	
	/* 轮播图 */
	.wrap{
		margin: 20upx 0;
	}
	/* 菜单 */
	/* .home-list{
		margin-top: 20upx;
	} */
.user-body{
	padding: 0 20upx;
}


</style>
